class Group < ActiveRecord::Base
  has_many :tuples
  has_many :tags, :through => :tuples
  
  def self.find_or_create_by_name(name) 
    group = find_by_name(name)
    if not group then
      group = create(:name => name)
    end    
    return group
  end
  
end
